<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.bkav.portal.porlet.model.Userlogs"%>
<%@page import="com.bkav.portal.porlet.service.UserlogsLocalServiceUtil"%>
<%@page import="java.util.List"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>

<portlet:defineObjects />
<%@ include file="/html/userlogs/init.jsp"%>
This is the <b>User Logs portlet in View mode.</b> 
<%
	List<Userlogs> listUserlogs = UserlogsLocalServiceUtil.getUserlogses(0, 100);
%>
<%
	PortletURL iteratorURL= renderResponse.createRenderURL();
iteratorURL.setParameter("jspPage", "/html/userlogs/view.jsp");
%>

<liferay-ui:search-container delta="5" iteratorURL="<%=iteratorURL%>">
	<liferay-ui:search-container-results
		results="<%=ListUtil.subList(listUserlogs, searchContainer.getStart(),searchContainer.getEnd())%>"
		total="<%=listUserlogs.size()%>" />
	<liferay-ui:search-container-row
		className="com.bkav.portal.porlet.model.Userlogs" modelVar="userlog"
		rowVar="">
		<liferay-ui:search-container-column-text name="Id" align="left"
			value="<%=StringUtil.valueOf(userlog.getUserlogsId())%>" />		
				
		<liferay-ui:search-container-column-text name="Logs Name" align="left"
			value="<%=userlog.getUserlogsName()%>" />

		<liferay-ui:search-container-column-text name="Action" align="left"
			value="<%=userlog.getUserlogsAction()%>" />
	</liferay-ui:search-container-row>
	<liferay-ui:search-iterator searchContainer="<%=searchContainer%>"
		paginate="true" />

</liferay-ui:search-container>